CryptoPro XMLDsig API.
Public API.

ru.CryptoPro.JCPxml.dsig.internal.dom
Class DOMSignatureProperty

java.lang.Object
  extended by ru.CryptoPro.JCPxml.dsig.internal.dom.DOMStructure
      extended by ru.CryptoPro.JCPxml.dsig.internal.dom.DOMSignatureProperty
All Implemented Interfaces:
javax.xml.crypto.dsig.SignatureProperty, javax.xml.crypto.XMLStructure

public final class DOMSignatureProperty
extends DOMStructure
implements javax.xml.crypto.dsig.SignatureProperty

DOM-based implementation of SignatureProperty.


Constructor Summary
DOMSignatureProperty(org.w3c.dom.Element propElem, javax.xml.crypto.XMLCryptoContext context)
          Creates a DOMSignatureProperty from an element.
DOMSignatureProperty(java.util.List<? extends javax.xml.crypto.XMLStructure> content, java.lang.String target, java.lang.String id)
          Creates a SignatureProperty from the specified parameters.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.List getContent()
           
 java.lang.String getId()
           
 java.lang.String getTarget()
           
 void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context)
           
 
Methods inherited from class ru.CryptoPro.JCPxml.dsig.internal.dom.DOMStructure
isFeatureSupported
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
 

Constructor Detail

DOMSignatureProperty

public DOMSignatureProperty(java.util.List<? extends javax.xml.crypto.XMLStructure> content,
                            java.lang.String target,
                            java.lang.String id)
Creates a SignatureProperty from the specified parameters.

Parameters:
content - a list of one or more XMLStructures. The list is defensively copied to protect against subsequent modification.
target - the target URI
id - the Id (may be null)
Throws:
java.lang.ClassCastException - if content contains any entries that are not of type XMLStructure
java.lang.IllegalArgumentException - if content is empty
java.lang.NullPointerException - if content or target is null

DOMSignatureProperty

public DOMSignatureProperty(org.w3c.dom.Element propElem,
                            javax.xml.crypto.XMLCryptoContext context)
                     throws javax.xml.crypto.MarshalException
Creates a DOMSignatureProperty from an element.

Parameters:
propElem - a SignatureProperty element
Throws:
javax.xml.crypto.MarshalException
Method Detail

getContent

public java.util.List getContent()
Specified by:
getContent in interface javax.xml.crypto.dsig.SignatureProperty

getId

public java.lang.String getId()
Specified by:
getId in interface javax.xml.crypto.dsig.SignatureProperty

getTarget

public java.lang.String getTarget()
Specified by:
getTarget in interface javax.xml.crypto.dsig.SignatureProperty

marshal

public void marshal(org.w3c.dom.Node parent,
                    java.lang.String dsPrefix,
                    javax.xml.crypto.dom.DOMCryptoContext context)
             throws javax.xml.crypto.MarshalException
Specified by:
marshal in class DOMStructure
Throws:
javax.xml.crypto.MarshalException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

Copyright Crypto-Pro.
All rights reserved.